package com.mm.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.mm.BaseSupper.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商品基本信息表
 * </p>
 *
 * @author wdx
 * @since 2020-09-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("mm_goods")
@ApiModel(value="MmGoods对象", description="商品基本信息表")
public class MmGoods extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品编号")
    @TableField("goods_no")
    private String goodsNo;

    @ApiModelProperty(value = "商品标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "商品短标题")
    @TableField("d_title")
    private String dTitle;

    @ApiModelProperty(value = "商品类型(-1:精选   0: 5.9元区   1: 9.9元区  2: 19.9元区  3:每日爆品推荐)")
    @TableField("goods_type")
    private Integer goodsType;

    @ApiModelProperty(value = "商品原价")
    @TableField("original_price")
    private BigDecimal originalPrice;

    @ApiModelProperty(value = "券后价格")
    @TableField("actual_price")
    private BigDecimal actualPrice;

    @ApiModelProperty(value = "优惠券金额")
    @TableField("coupon_price")
    private BigDecimal couponPrice;

    @ApiModelProperty(value = "月销量")
    @TableField("month_sales")
    private Integer monthSales;

    @ApiModelProperty(value = "商品类目ID")
    @TableField("category_id")
    private Integer categoryId;

    @ApiModelProperty(value = "商品分类ID")
    @TableField("brand_id")
    private Integer brandId;

    @ApiModelProperty(value = "商品宣传图片列表，采用JSON数组格式")
    @TableField("gallery")
    private String gallery;

    @ApiModelProperty(value = "商品关键字，采用逗号间隔")
    @TableField("keywords")
    private String keywords;

    @ApiModelProperty(value = "商品简介")
    @TableField("brief")
    private String brief;

    @ApiModelProperty(value = "是否上架")
    @TableField("is_on")
    private Boolean isOn;

    @ApiModelProperty(value = "商品排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty(value = "商品页面商品图片")
    @TableField("main_pic")
    private String mainPic;

    @ApiModelProperty(value = "营销主图链接")
    @TableField("marketing_main_pic")
    private String marketingMainPic;

    @ApiModelProperty(value = "商品分享朋友圈图片")
    @TableField("share_url")
    private String shareUrl;

    @ApiModelProperty(value = "是否新品首发，如果设置则可以在新品首发页面展示")
    @TableField("is_new")
    private Boolean isNew;

    @ApiModelProperty(value = "是否人气推荐，如果设置则可以在人气推荐页面展示")
    @TableField("is_hot")
    private Boolean isHot;

    @ApiModelProperty(value = "商品单位，例如件、盒")
    @TableField("goods_unit")
    private String goodsUnit;

    @ApiModelProperty(value = "商品详细介绍，是富文本格式")
    @TableField("txt")
    private String txt;


    public static final String GOODS_NO = "goods_no";

    public static final String TITLE = "title";

    public static final String DTITLE = "dtitle";

    public static final String GOODS_TYPE = "goods_type";

    public static final String ORIGINAL_PRICE = "original_price";

    public static final String ACTUAL_PRICE = "actual_price";

    public static final String COUPON_PRICE = "coupon_price";

    public static final String MONTH_SALES = "month_sales";

    public static final String CATEGORY_ID = "category_id";

    public static final String BRAND_ID = "brand_id";

    public static final String GALLERY = "gallery";

    public static final String KEYWORDS = "keywords";

    public static final String BRIEF = "brief";

    public static final String IS_ON = "is_on";

    public static final String SORT = "sort";

    public static final String MAIN_PIC = "main_pic";

    public static final String MARKETING_MAIN_PIC = "marketing_main_pic";

    public static final String SHARE_URL = "share_url";

    public static final String IS_NEW = "is_new";

    public static final String IS_HOT = "is_hot";

    public static final String GOODS_UNIT = "goods_unit";

    public static final String TXT = "txt";

}
